package com.wcar.vipmanagement.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wcar.common.entity.CarStore;
import com.wcar.common.vo.Result;
import com.wcar.vipmanagement.service.impl.CarStoreServiceImpl;
import com.wcar.vipmanagement.vo.CarStoreVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/car")
public class CarManagementController {
    @Autowired
    private CarStoreServiceImpl carStoreService;
    @RequestMapping("/CarManagement")
    public Result<Page<CarStore>> CarManagement(@RequestBody CarStoreVo carStoreVo){
        return carStoreService.getCarList(carStoreVo);
    }
}
